package com.example.back.service;

import com.example.back.model.Admin;
import com.example.back.model.Employee;
import com.example.back.model.Record;

import javax.servlet.http.HttpSession;
import java.sql.Date;
import java.util.List;

public interface AdminService {
    List<Admin> findAllAdmin();
    String adminLogin(String account, String password, HttpSession httpSession);
    String userCount();
    String orderCount();
    List<Employee> selectAllEmployee();
    List<Employee> selectByInformation(String information);
    Boolean insertEmployee(String name, int sex, Date birthday, String phone, String job);
    Boolean updateEmployeeJob(int employeeID, String job);
    Boolean deleteEmployee(int employeeID);
    List<Record> selectAllInto_room();
    List<Record> findInto_roomByRoom(String name);
    List<Record> findInto_roomByAccount(String account);
    List<Record> findInto_roomByFlag(int flag);
    Boolean deleteRecordByID(int id);
    int findFlagByID(int id);
    Boolean updateRecordByID(int id);
}
